import request from '@/utils/request'

/**
 * 登录接口
 * @param {Object} data { mobile, password }
 * @returns
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

/**
 * 获取用户资料
 */
export function getUserInfo() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

export function logout() {
}

/**
 * 获取用户详情
 */
export function getUserDetail(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'GET'
  })
}
